﻿using System;
using System.Collections.Generic;

using System.Web;

/// <summary>
/// Summary description for DALCT_HoaDon
/// </summary>
public class DALCT_HoaDon:StandardConnectDB,ICT_HoaDon
{
	public DALCT_HoaDon()
	{
		//
		// TODO: Add constructor logic here
		//
	}

    #region ICT_HoaDon Members

    public bool insert(CT_HoaDon dtoCtHoadon)
    {
        Dictionary<string, object> paramlist = new Dictionary<string, object>();

        paramlist.Add("@spMahd", dtoCtHoadon.DtoHoaDon.MaHD);
        paramlist.Add("@spMaSp", dtoCtHoadon.DtosanPham.Masp);
        paramlist.Add("@spSL", dtoCtHoadon.SoLuong);

        return this.ExecuteUpdate("insertCTHD", paramlist);
       
    }

    #endregion
}